// We look for the largest scale that allows us to fit the
// largest row/tallest column on the workspace.
- const strategy = new UnalignedLayoutStrategy({
+ this._layoutStrategy = new UnalignedLayoutStrategy({
monitor: Main.layoutManager.monitors[this._monitorIndex],
rowSpacing,
columnSpacing,
if (numColumns === lastNumColumns)
break;
- const layout = strategy.computeLayout(this._sortedWindows, {
+ const layout = this._layoutStrategy.computeLayout(this._sortedWindows, {
numRows,
});
- layout.strategy = strategy;
- const [scale, space] = strategy.computeScaleAndSpace(layout, area);
+ const [scale, space] = this._layoutStrategy.computeScaleAndSpace(layout, area);
if (!this._isBetterScaleAndSpace(lastScale, lastSpace, scale, space))
break;
height: parseInt(containerBox.get_height()),
};
- return this._layout.strategy.computeWindowSlots(this._layout, availArea);
+ return this._layoutStrategy.computeWindowSlots(this._layout, availArea);
}
_getAdjustedWorkarea(container) {